# Python 的代码执行顺序是按照从上到下的顺序, 依次执行的.
# print("11")
# print("22")
# print("33")
# 条件语句
# choice = input("输入 1 表示认真学习, 输入 2 表示躺平摆烂: ")
# if choice == "1":
#     print("你会找到好工作!")缩进
# elif choice == "2":
#     print("你可能毕业就失业了!")
# else:
#     print("你的输入有误!")
#嵌套
# a = input("请输入第一个整数: ")
# b = input("请输入第二个整数: ")
# if a == "1":
#     if b == "2":
#         print("hello")
#     print("world")
# print("python")
#空语句pass
# a = int(input("请输入一个整数:"))
# if a != 1:
#  pass
# else:
#     print("hello")

# 循环语句
# sum = 0
# num = 1
# while num <= 100:
#     sum += num
#     num += 1
# print(sum)
# 求 1! + 2! + 3! + 4! + 5!
# num = 1
# sum = 0
# while num <= 5:
#     factorResult = 1
#     i = 1
#     while i <= num:
#         factorResult *= i
#         i += 1
#     sum += factorResult
#     num += 1
# print(sum)

